package C11_1_CreationMethod.before;

import java.util.Date;

/**
 * Desc;&emsp;&ensp;贷款风险评估
 *
 * @author 李渊&emsp;liyuan7@yusys.com.cn
 * @version 1.0
 * @since V4.3&emsp;2022/8/25
 */
public class Loan {
    public Loan(float notional, float outstanding, int rating, Date expiry) {
        this.capitalStrategy = new TermROC();
        this.notional = notional;
        this.outstanding = outstanding;
        this.rating = rating;
        this.expiry = expiry;
    }

    public Loan(float notional, float outstanding, int rating, Date expiry, Date maturity) {
        this.capitalStrategy = new RevolvingTermROC();
        this.notional = notional;
        this.outstanding = outstanding;
        this.rating = rating;
        this.expiry = expiry;
        this.maturity = maturity;
    }

    public Loan(CapitalStrategy strategy, float notional, float outstanding, int rating,
                Date expiry, Date maturity) {
        this.capitalStrategy = strategy;
        this.notional = notional;
        this.outstanding = outstanding;
        this.rating = rating;
        this.expiry = expiry;
        this.maturity = maturity;
    }


    private CapitalStrategy capitalStrategy;
    private double commitment;
    private double outstanding;
    private float notional;
    private int rating;
    private Date maturity;
    private Date expiry;


}
